
const path = require("path");

const resolve = dir => {
    return path.join(__dirname, dir);
};
module.exports = {
    lintOnSave: true,
    chainWebpack: config => {
        config.resolve.alias
            .set('@', resolve('src'))
            .set('_v', resolve('src/views'))
            .set('api', resolve('src/api'))
            .set('_c', resolve('src/components'))
            .set('libs', resolve('src/libs'));
    }
}